<?php
/**
 * 定义系统对于用户操作产生的反馈信息的内容与管理 
 *
 */
class response_message_process{

	 private $type;
	 private $message;
	 private $url;

	 function __construct(){}

	 function set_type( $type = 'info' ){
	 
		 $_SESSION['type'] = $type;
		 return true;
	 }
	 function set_message( $message = '暂时没有您的消息' ){
	 
		 $_SESSION['message'] = $message;
		 return true;
	 }
	 function set_url( $url = 'index.php' ){
	 	 
		 $_SESSION['url'] = $url;
		 return true;
	 }

	 function get_type(){
	 	 
		 return $_SESSION['type'];
	 }
	 function get_message(){
	 
	 	 return $_SESSION['message'];
	 }
	 function get_url(){
	 	 
		 return $_SESSION['url'];
	 }

	 function destory(){

	 	 $_SESSION['type'] = null;
	 	 $_SESSION['message'] = null;
	 	 $_SESSION['url'] = null;
	 }

}
